Gets the Cursor row and column positions.